package com.me.items;

import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.me.example.Assets;
import com.me.experiment.Object;


public class Button extends Object {

	
	int color_;
	
	public Button() {
	}

	
	public Button(float x, float y, float w, float h, int color) {
		touchable_ = true;
		setPosition(x,y);
		setDimensions(w,h);
		setColor(color);
	}

	
	private void setColor(int color) {
		color_ = color;		
	}


	@Override
	protected void onTouchDown() {
		// TODO Auto-generated method stub
		touched_ = true;
		
		
	}

	@Override
	protected void onTouchUp() {
		// TODO Auto-generated method stub
		
	}

	@Override
	protected void onTouchLong() {
		// TODO Auto-generated method stub
		
	}

	@Override
	protected void onTouchDrag(float x, float y) {
		// TODO Auto-generated method stub
		
	}

	@Override
	protected void update(float deltatime) {
		// TODO Auto-generated method stub
		
	}

	@Override
	protected void draw(SpriteBatch batch) {
		// TODO Auto-generated method stub
		//batch.setColor(1f, 0f, 0f, 0f);
		batch.draw(Assets.test_texture_r,x_,y_,width_,height_);
		}
	

	

}
